﻿using Newtonsoft.Json;

namespace Infrastructure.ExternalService.Core.Responses
{
    public class UploadResponse
    {
        [JsonProperty("code")]
        public string Code { get; set; }

        [JsonProperty("data")]
        public UploadFile Data { get; set; }

        [JsonProperty("msg")]
        public UploadFile Message { get; set; }
    }

    /*
     * 示例:
    "fileId": "FILE20200812340000000010",
    "filePath": "2020/08/12/15972189836570776.xls",
    "fileKey": ""
     */
    public class UploadFile
    {
        public string FileId { get; set; }
        public string FilePath { get; set; }
    }
}
